home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / BSN122SR.ZIP / src / bison-1.22 / system.h < prev    next >
C/C++ Source or Header  |  1993-03-18  |  698b  |  24 lines

  1. #ifdef MSDOS
  2. #include <io.h>
  3. #endif
  4.  
  5. #if defined(HAVE_STDLIB_H) || defined(MSDOS)
  6. #include <stdlib.h>
  7. #endif
  8.  
  9. #if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
  10. #define HAVE_STRING_H 1
  11. #endif
  12.  
  13. #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  14. #include <string.h>
  15. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  16. #if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
  17. #include <memory.h>
  18. #endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  19. #define bcopy(src, dst, num) memcpy((dst), (src), (num))
  20. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  21. #include <strings.h>
  22. /* memory.h and strings.h conflict on some systems.  */
  23. #endif /* not STDC_HEADERS and not HAVE_STRING_H */
  24.